home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gscoord.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  2.2 KB  |  50 lines

  1. /* Copyright (C) 1989, 1996 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gscoord.h,v 1.2 2000/09/19 19:00:26 lpd Exp $ */
  20. /* Interface to graphics state CTM procedures */
  21. /* Requires gsmatrix.h and gsstate.h */
  22.  
  23. #ifndef gscoord_INCLUDED
  24. #  define gscoord_INCLUDED
  25.  
  26. /* Coordinate system modification */
  27. int gs_initmatrix(P1(gs_state *)), gs_defaultmatrix(P2(const gs_state *, gs_matrix *)),
  28.       gs_currentmatrix(P2(const gs_state *, gs_matrix *)), gs_setmatrix(P2(gs_state *, const gs_matrix *)),
  29.       gs_translate(P3(gs_state *, floatp, floatp)), gs_scale(P3(gs_state *, floatp, floatp)),
  30.       gs_rotate(P2(gs_state *, floatp)), gs_concat(P2(gs_state *, const gs_matrix *));
  31.  
  32. /* Extensions */
  33. int gs_setdefaultmatrix(P2(gs_state *, const gs_matrix *)), gs_currentcharmatrix(P3(gs_state *, gs_matrix *, bool)),
  34.       gs_setcharmatrix(P2(gs_state *, const gs_matrix *)), gs_settocharmatrix(P1(gs_state *));
  35.  
  36. /* Coordinate transformation */
  37. int gs_transform(P4(gs_state *, floatp, floatp, gs_point *)), gs_dtransform(P4(gs_state *, floatp, floatp, gs_point *)),
  38.     gs_itransform(P4(gs_state *, floatp, floatp, gs_point *)), gs_idtransform(P4(gs_state *, floatp, floatp, gs_point *));
  39.  
  40. #ifndef gs_imager_state_DEFINED
  41. #  define gs_imager_state_DEFINED
  42. typedef struct gs_imager_state_s gs_imager_state;
  43. #endif
  44.  
  45. int gs_imager_setmatrix(P2(gs_imager_state *, const gs_matrix *));
  46. int gs_imager_idtransform(P4(const gs_imager_state *, floatp, floatp,
  47.                  gs_point *));
  48.  
  49. #endif /* gscoord_INCLUDED */
  50.